package com.test.service.impl;

import com.test.mapper.StreetMapper;
import com.test.pojo.Street;
import com.test.service.StreetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StreetServiceImpl implements StreetService {
    @Autowired
    private StreetMapper streetMapper;

    @Override
    public List<Street> findAll() {
        return streetMapper.selectAllStreets();
    }
}